@image:'../images';
@black:#111;
@white:#fff;
@main_color:#f98f04;
@yellow:#ffa227;
@bg_color:#f7f7f7;
@xs_size:12px;
@sm_size:14px;
@md_size:16px;
@font_22:22px;
@lg_size:24px;
.boxWidth(@width,@top:0){
    width: @width;
    margin: @top auto;
};
.ellipsis(){
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
};
.ellipsis-mult(@n: 2) {
    -webkit-line-clamp: @n; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-break: break-all;
    -o-text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    text-overflow:ellipsis; 
    overflow: hidden;
}
.fontColor(@color){
    color: @color;
}
.fontSize(@size:14px when isnumber(@size)){
    font-size: @size;
};
.boxMargin(...){
    margin: @arguments;
}
.boxRadius(...){
    -webkit-border-radius: @arguments;
    -moz-border-radius: @arguments;
    -ms-border-radius: @arguments;
    -o-border-radius: @arguments;
    border-radius: @arguments;
}
.boxPadding(...){
    padding: @arguments;
};
.boxShadow(...){
    -webkit-box-shadow: @arguments;
    -moz-box-shadow: @arguments;
    box-shadow: @arguments;
};
.boxSizing{
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
.boxCenter(@right:0,@top:50%){
    position: absolute;
    right: @right;
    top: @top;
    -webkit-transform: translateY(-@top);
    -moz-transform: translateY(-@top);
    transform: translateY(-@top);
}
.greyColor(@num:3 when isnumber(@num)){
    color: @black*@num;
};
.btnDefault(@width:100px,@height:38px,@bg:@main_color,@color:#fff,@size:14px,@radius:8px){
    width: @width;
    height: @height;
    line-height: @height;
    text-align: center;
    .fontSize(@size);
    .fontColor(@color);
    background: @bg;
    .boxRadius(@radius);
}
.btnBorder(@width:100px,@height:38px,@borderColor:#e4e4e4,@color:#333,@size:14px,@radius:8px){
    width: @width;
    height: @height;
    line-height: @height;
    text-align: center;
    .fontSize(@size);
    .fontColor(@color);
    border: 1px solid @borderColor;
    .boxRadius(@radius); 
    .boxSizing();
};
.headerIcon(@url){
    background-image:@url;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.flex_item(@width:10%){
    float: left;
    width: @width;
    text-align: center;
}
.clearfix(){
    *zoom: 1;
    &:before,
    &:after{
      display:table;
      content: "";
    }
    &:after {
      clear: both;
    }
}
body{
    background:@bg_color;
}
.login_wrap{
    .sure_btn{
        margin: 30px 0;
        display: block;
        .btnDefault(100%, 58px);
        font-size: @font_22;
    }
}

//头部导航
.wrap_header{
    width: 100%;
    height: 90px;
    background: #fff;
    .boxShadow(0,2px,3px,rgba(0,0,0,.1));
    .head_box{
        height: 70px;
        line-height: 70px;
        padding: 10px 0;
        .boxWidth(1200px);
        .logo{
            .fontSize(26px);
            .title{
                margin-left: 10px;
            }
        }
        .head_navigator{
            float: right;
            .fontSize(@sm_size);
            .fontColor(@black*5);
            .nav_item{
                position: relative;
                padding: 20px 8px;
                margin: 0 30px;
                &::after{
                    content: "";
                    position: absolute;
                    left: -30px;
                    top: 25px;
                    width: 1px;
                    height: 11px;
                    background: #bbb;
                }
                &:first-child::after{
                    display: none
                }
                &.on,
                &:hover{
                    .fontColor(@main_color);
                    border-bottom: 3px solid @main_color;
                }
            };
            .nav_search{
                margin-left: 50px;
                &.on,
                &:hover{
                    .fontColor(@main_color);
                    .icon_search{
                        background: url(../images/icon_search_on.png) no-repeat;
                    }
                }
                .icon_search{
                    margin: 0 5px;
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    background: url(../images/icon_search.png) no-repeat;
                    background-size:100% 100%;
                    vertical-align: middle;
                }
            }
        }
    }
    
}

//底部
.wrap_footer{
    width: 100%;
    .fontColor(@white);
    background: @black*3;
    .footer_main{
        padding: 20px 0;
        font-size:@sm_size;
        .boxWidth(1200px);
        .footer_code{
            float: right;
            font-size: @xs_size;
            text-align: center;
            .tip{
                margin-top: 10px;
            }
        }
        .footer_info{
            margin-right: 150px;
            line-height: 1.5;
            padding-top: 5px;
            p{
                margin: 10px 0;
                span{
                    padding:0 10px;
                }
            }
        }
    }
    .website_info{
        width: 100%;
        height: 44px;
        line-height: 44px;
        text-align: center;
        background: #111;
        span{
            padding: 0 10px;
        }
    }
}

//轮播
.slide_mask{
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background: url(../images/slide_bg.png) no-repeat;
    background-size: 100% 100%;
}
.line_head{
    position: relative;
    padding-left: 16px;
    line-height:1;
    .fontSize(@sm_size);
    .fontColor(@black*3);
    a{
        .fontColor(@black*3);
        &.go_home{
            .fontSize(@md_size);
            .fontColor(@main_color);
        }
    }
    &::before{
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: @main_color;
    }
}
.box_title{
    text-align: center;
    font-size: @font_22;
    color: @black*3;
}
.box_head{
    position: relative;
    padding: 20px 0;
    text-align: center;
    .title{
        font-size: @font_22;
        color: @black*3;
        margin-bottom: 15px;
    }
    .line{
        display: block;
        width: 23px;
        height: 3px;
        background: @main_color;
        margin: 0 auto;
    }
    .desc{
        margin-top: 15px;
        font-size: @sm_size;
        color: @black*9;
    }
    .icon_more{
        position: absolute;
        right: 20px;
        bottom: 20px;
        width: 24px;
        height: 24px;
        background: url(../images//icon_more.png) no-repeat;
        background-size: 100% 100%;
    }
}
.wrap_main{
    position: relative;
    width: 1200px;
    margin:-240px auto 20px;
    z-index: 9;
    &.common_main{
        margin: 20px auto;
    }
    .common_box{
        margin: 40px 0;
        background: #fff;
        .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
        .about_content{
            padding:0 20px 20px;
            font-size: @sm_size;
            color: @black*3;
            text-align: center;
            line-height: 2;
        }
    }
    .swiper_ev{
        // height: 460px;
    }
    .record_box,
    .ev_box{
        .join_box,
        .record_table,
        .ev_table{
            font-size: @sm_size;
            color: @black*3;
            border-top: 4px solid @main_color;
            .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
            .job_item,
            .ev_item{
                width: 100%;
                height: 48px;
                line-height: 48px;
                .clearfix();
                .item{
                    .flex_item(33.33%);
                }
                &:nth-child(2n-1){
                    background: @white;
                };
                &::nth-child(2n){
                    background: @bg_color;
                }
            };
            .job_item {
                display: block;
                padding: 0 20px;
                .boxSizing();
                .date{
                    float: right;
                }
                .title{
                    position: relative;
                    margin-left: 20px;
                    &::before{
                        content: "";
                        position: absolute;
                        left: -20px;
                        top: 2px;
                        width: 10px;
                        height: 15px;
                        background: url('../images/job_more.png') no-repeat;
                        background-size: 100% 100%;
                    }
                }
            }
        }
    }
    .product_center{
        overflow: hidden;
        ul li{
            .flex_item(50%);
            overflow: hidden;
            
            .pic,
            .profile{
                .flex_item(50%);
                height: 280px;
            }
            .pic{
                display: block;
                overflow: hidden;
                -webkit-transition: all .3s ease;
                -moz-transition: all .3s ease;
                transition: all .3s ease;
            }
            &:hover .pic{
                -webkit-transform: scale(1.05);
                -moz-transform: scale(1.05);
                transform: scale(1.05);
            }
            .profile{
                position: relative;
                padding: 20px;
                text-align: left;
                color: @white;
                line-height: 1.9;
                background: @yellow;
                z-index: 9;
                .boxSizing();
                h3.name{
                    font-size: @md_size+4;
                    line-height: 2;
                    .ellipsis();
                }
                .line{
                    display: block;
                    margin: 10px 0;
                    width: 23px;
                    height: 3px;
                    background: @white;
                }
                .desc{
                    margin: 20px 0;
                    font-size: @xs_size;
                }
                .more{
                    font-style: italic;
                    color: @white;
                }
                &::after{
                    content: "";
                    position: absolute;
                    top: 50%;
                    margin-top: -30px;
                    width: 0;
                    height: 0;
                    border-top: 30px solid transparent;
                    border-bottom: 30px solid transparent; 
                }
                &.left::after{
                    left: -20px;
                    border-right: 20px solid @yellow;
                }
                &.right::after {
                    right: -20px;
                    border-left: 20px solid @yellow;
                }
            }
        }
    }
    .platform{
        padding: 5px 5px 0;
        text-align: center;
        height: 180px;
        ul{
            .clearfix();
            li{
                .logo{
                    display: block;
                    width: 100%;
                    height: 140px;
                    background: @white;
                    .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
                    img{
                        margin:0 auto;
                        position: relative;
                        top: 50%;
                        -webkit-transform: translateY(-50%);
                        -moz-transform: translateY(-50%);
                        transform: translateY(-50%);
                        max-width: 100%;
                        max-height: 100%;
                    }
                }
                .name{
                    margin-top: 15px;
                    font-size: @sm_size;
                    color: @black*3;
                }
            }
        }
        .swiper-button-black{
            opacity: .3;
            filter: alpha(opacity=30);
            margin-top: -35px!important;
        }
    }
    .news_list{
        .news_item{
            padding: 20px;
            .clearfix();
            margin: 30px auto;
            background: @white;
            .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
            .item_pic{
                float: left;
                width: 292px;
                height: 215px;
            }
            .item_content{
                margin-left:317px;
                margin-top: 20px;
                .head{
                    height: 44px;
                    line-height: 44px;
                    .title{
                        font-size: @md_size+4;
                        color: @black*3;
                        margin-right: 160px;
                        .ellipsis();
                    }
                    .time{
                        float: right;
                        color: @black*9;
                    }
                }
                .line{
                    display: block;
                    width: 23px;
                    height: 3px;
                    background: @main_color;
                }
                .desc{
                    margin: 20px 0 30px;
                    color: @black*3;
                    line-height: 2;
                }
                .more{
                    font-style: italic;
                    color: @main_color;
                }
            }
            
        }
    }
    .content_box{
        margin-top: 30px;
        padding: 20px 30px;
        background: @white;
        .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
        .box_head{
            .desc span{
                margin: 0 10px;
            }
        }
        .content_desc{
            img{
                display: block;
                max-width: 100%;
                margin: 10px auto;
            }
            p{
                margin: 10px 0;
                font-size: @sm_size;
                color: black*3;
                line-height: 2;
                text-align: center;
            }
        }
    }
    .controls{
        margin-top: 60px;
        .clearfix();
        .search_btn{
            float: left;
            margin-right: 50px;
            display: block;
            .btnBorder(175px, 52px,@main_color,@main_color,@md_size);
        }
        .apply_btn{
            float: left;
            margin-right: 50px;
            display: block;
            .btnDefault(175px, 52px,@main_color,@white,@md_size);
        }
    }
    .job{
        margin-top: 30px;
        padding: 20px 0;
        background: @white;
        .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
        .profile{
            padding: 10px 20px;
            font-size: @md_size;
            color: @black*6;
            background: #f7f7f7;
        }
        .content{
            padding: 20px;
            font-size: @sm_size;
            text-align: center;
            line-height: 2;
        }
    }
    .service_user{
        width: 170px;
        margin: 30px auto;
        .user_avatar{
            margin: 10px auto;
            width: 100px;
            position: relative;
            .avatar{
                display: block;
                width: 100px;
                height: 100px;
                .boxRadius(100%);
            }
            .level{
                position: absolute;
                right: 0;
                bottom: 0;
                width: 28px;
                height: 28px;
                text-align: center;
                font-size: @xs_size;
                color: @white;
                .boxRadius(100%);
                background: @main_color;
                .vip{
                    margin-top: 8px;
                    display: inline-block;
                    width: 14px;
                    height: 13px;
                    background: url('../images/icon_vip.png') no-repeat;
                    background-size: 100% 100%;
                }
            }
        }
        .phone{
            margin: 15px 0;
            text-align: center;
            font-size: @md_size+4;
            color: @black*3;
        }
        .btn_out{
            display: block;
            .btnDefault(100%, 40px);
        }
        
    }
    .statist_box{
        background: @white;
        .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
        .statist_filter{
            .clearfix();
            width: 480px;
            margin: 0 auto;
            text-align: center;
            .filter_item{
                position: relative;
                float: left;
                margin: 0 10px;
                select{
                    width: 140px;
                    padding: 0 20px;
                    text-align: center;
                    height: 34px;
                    line-height: 34px;
                    font-size: @sm_size;
                    color: @black*6;
                    border-color: #e4e4e4;
                    .boxRadius(4px);
                }
                &::after{
                    content:'';
                    position: absolute;
                    right: 10px;
                    top: 12px;
                    width: 15px;
                    height: 10px;
                    background: url('../images/select_down.png') no-repeat;
                    background-size: 100% 100%;
                }
            }
            
        }
        #echarts{
            width: 100%;
            height: 360px;
        }
    }
    .record_table{
        max-height: 500px;
        background: @white;
        .tr_head{
            padding: 0 30px;
            height: 40px;
            line-height: 40px;
            font-size: @md_size;
            background: #f5f5f5;
        }
        ul{
            background: #fff;
        }
        .trade_item{
            margin: 0 30px;
            height: 48px;
            line-height: 48px;
            border-bottom: 1px solid #e4e4e4;
            .clearfix();
            &:last-child{
                border-bottom: none;
            }
            .staff{
                .flex_item(33.333%);
                &:first-child{
                    text-align: left;
                }
                &:last-child{
                    text-align: right;
                }
                &.active{
                    color: @main_color;
                }
            }
        }
        .trade_filter{
            position: relative;
            width: 220px;
            margin: 20px auto;
            select{
                width: 220px;
                padding: 0 20px;
                text-align: center;
                height: 34px;
                line-height: 34px;
                font-size: @sm_size;
                color: @black*6;
                border-color: #e4e4e4;
                .boxRadius(4px);
            }
            &::after{
                content:'';
                position: absolute;
                right: 10px;
                top: 12px;
                width: 15px;
                height: 10px;
                background: url('../images/select_down.png') no-repeat;
                background-size: 100% 100%;
            }
        }
        .recharge_item{
            height: 48px;
            line-height: 48px;
            padding: 0 30px;
            .clearfix();
            &:nth-child(2n){
                background: #f7f7f7;
            }
            .staff{
                .flex_item(14.2%);
            }
        }
        .consult_item{
            margin: 30px;
            padding-bottom: 30px;
            border-bottom: 1px solid #e4e4e4;
            &:last-child{
                margin-bottom: 0;
                border-bottom: none;
            }
            .avatar{
                float: left;
                width:100px;
                height: 100px;
                .boxRadius(100%);
            }
            .info{
                margin-left: 130px;
                .name{
                    font-size: @md_size+4;
                    color: @black*3;
                    line-height: 2;
                }
                .time{
                    font-size: @sm_size;
                    color: @black*9;
                }
                .desc{
                    margin: 10px 0;
                }
                .info_pics{
                    .clearfix();
                    .consult_pic{
                        margin-right: 2%;
                        .flex_item(18%);
                    }
                }
            }
        }
    }
    .upload_file{
        margin-top: 30px;
        position: relative;
        width: 170px;
        .upload_name{
            width: 100%;
            margin-left: 24px;
            font-size: @md_size;
            color: @main_color;
            &::before{
                content: '';
                position: absolute;
                left: 0;
                top: 2px;
                width: 16px;
                height: 16px;
                background: url(../images/icon_attachment.png) no-repeat;
                background-size:100% 100%;
            }
        }
        .file{
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            right: 0;
            opacity: 0;
            filter:alpha(opacity=0);
            cursor: pointer;
        }
    }
    .form_content{
        margin:20px 0 30px;
        .btn_submit{
            float: right;
            .btnDefault(90px, 44px)
        }
        .form_put{
            margin-right: 110px;
            padding: 0 20px;
            background: @white;
            .boxShadow(0 1px 6px 2px rgba(0,0,0,.1));
            .boxRadius(4px);
            input{
                display: block;
                width: 100%;
                height: 44px;
                line-height: 44px;
            }
        }
    }
}

.filter_box{
    margin-top: 30px;
    li{
        line-height: 34px;
        font-size: @sm_size;
        color: @black*3;
        .clearfix();
        .filter_name{
            .flex_item(70px);
            text-align: right;
        }
        .filter_list{
            margin-left: 70px;
            .filter_item{
                position: relative;
                float: left;
                margin-left: 15px;
                margin-bottom: 15px;
                & > label{
                    display: block;
                    padding: 0 20px;
                    height: 34px;
                    .boxRadius(4px);
                    background: @white;
                    border:1px solid #e4e4e4;
                }
                & > input[type="radio"] {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 34px;
                    opacity: 0;
                    cursor: pointer;
                }
                & > input:checked+label { 
                    color:@white;
                    background:@main_color;
                    border-color: @main_color;
                }
            }
        }
    }
} 

.mask_wrap{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    display: none;
    .mask_box{
        position: absolute;
        width: 520px;
        padding: 0 40px;
        background: @white;
        .boxRadius(8px);
        .boxCenter(50%, 50%);
        margin-right: -270px;
        .boxSizing();
        .mask_close{
            position: absolute;
            top: 20px;
            right: 20px;
            width: 30px;
        }
        .mask_content{
            margin: 40px 0;
            &.max_height{
                height: 500px;
            }
            .item{
                font-size: @md_size;
                color: @black*3;
                .boxSizing();
                .item_name{
                    font-size: @md_size+2;
                    font-weight: 700;
                }
                .item_put{
                    margin: 20px 0;
                    padding: 5px 3%;
                    width: 100%;
                    height: 56px;
                    line-height: 56px;
                    border-radius: 10px;
                    font-size: 16px;
                    color: @black*3;
                    border: 1px solid #e4e4e4;
                    background: #f5f5f5;
                    .boxSizing();
                }
                .result{
                    margin: 20px 0;
                    display: block;
                    .btnBorder(100%, 70px,@main_color,@main_color,@font_22);
                }
            }
            .item_file{
                padding: 20px 0;
                border-bottom: 1px solid #e4e4e4;
                font-size: @md_size+4;
                overflow: hidden;
                .name{
                    font-size: @md_size+2;
                    font-weight: 700;
                    &.file_name{
                        display: block;
                        line-height: 60px;
                    }
                }
                .file_put{
                    float: right;
                    .file_list{
                        position: relative;
                        float: left;
                        margin-left: 10px;
                        width: 60px;
                        height: 60px;
                        input[type=file]{
                            position: absolute;
                            left: 0;
                            top: 0;
                            width: 60px;
                            height: 60px;
                            opacity: 0;
                            filter: alpha(opacity=0);
                        }
                        .pic{
                            width: 60px;
                            height: 60px;   
                        }
                        .icon_close{
                            position: absolute;
                            top: 2px;
                            right: 2px;
                            width: 20px;
                            height: 20px;
                            background: url('../images/icon_close@2x.png') no-repeat;
                            background-size: 100% 100%;
                            cursor: pointer;
                        }
                    }
                }
            }
        }
        .mask_btn{
            margin: 20px 0;
            .mask_sure{
                display: block;
                .btnDefault(100%, 54px);
                font-size: @md_size;
            }
        }
        
    }
}